Skip to content

Add mfem adapter - #323

Merged
jacobmerson merged 5 commits into
SCOREC:developfrom
jacobmerson:add-mfem-adapter
Oct 12, 2026
Merged

jacobmerson merged 5 commits into
SCOREC:developfrom
jacobmerson:add-mfem-adapter

Conversation

@jacobmerson

Copy link
Copy Markdown
Collaborator

No description provided.

@jacobmerson

Copy link
Copy Markdown
Collaborator Author

@hgangwar Did you want to open up a new PR with the updated/working version of the MFEM code? I can then close this PR.

@jacobmerson
jacobmerson marked this pull request as ready for review October 9, 2026 15:37
@jacobmerson

Copy link
Copy Markdown
Collaborator Author

We need to Rebase this and get it merged in.

Rather than pass data and layouts separately, we update the serializer
to directly take the Field&. This does a better job of maintaining
consistency with what data we are operating with. Also, it reduces the
number of places we expose FieldData, which is really an internal
implementation detail that we don't want readily exposed.
This resolves a bug in the deserialization where if the whole array was
not communicated it would end up storing zeros in the the dofs that were
not part of the communication. The current fix is quite expensive and
points to the need for Set/Get functions that operate over subsets of
the arrays.
This field adapter is not super general, but it does let us set up some
MFEM heat transfer test cases for demonstration purposes. Currently it
only supports scalars, MPI only (ParGridFunction), and linear H1 fields.
@jacobmerson
jacobmerson merged commit eda29ed into SCOREC:develop Oct 12, 2026
8 checks passed
@jacobmerson
jacobmerson deleted the add-mfem-adapter branch October 26, 2026 03:09

This branch was successfully deployed

1 active deployment
asics — 962b371d Deployed Oct 12, 2026 by jacobmerson via build_and_test #341
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants